<HTML><HEAD><TITLE>struct source_position(filespec, stream, file, line, offset, remaining_files, included_from, options, created_modules, oldcwd, module, ifdefs)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(source_processor)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>struct source_position(filespec, stream, file, line, offset, remaining_files, included_from, options, created_modules, oldcwd, module, ifdefs)</H1>
Current source position
<H2>Fields</H2><DL>
<DT><EM>filespec</EM></DT>
<DD>the original source file argument used in source_open/3
</DD>
<DT><EM>stream</EM></DT>
<DD>the Eclipse stream being read
</DD>
<DT><EM>file</EM></DT>
<DD>this file's canonical file name
</DD>
<DT><EM>line</EM></DT>
<DD>this position's line number (integer)
</DD>
<DT><EM>offset</EM></DT>
<DD>this position's byte offset (integer)
</DD>
<DT><EM>remaining_files</EM></DT>
<DD>list of files still to be included
</DD>
<DT><EM>included_from</EM></DT>
<DD>the source_position from which this file is included, or [] if not included
</DD>
<DT><EM>options</EM></DT>
<DD>structure describing option settings
</DD>
<DT><EM>created_modules</EM></DT>
<DD>list of modules created so far
</DD>
<DT><EM>oldcwd</EM></DT>
<DD>current directory before opening this file
</DD>
<DT><EM>module</EM></DT>
<DD>read-module at this source position
</DD>
<DT><EM>ifdefs</EM></DT>
<DD>list of atoms (then|else) describing nesting of if-directives
</DD>
</DL>
<H2>Description</H2>
This structure describes a particular position that has been
    	reached during processing of an ECLiPSe source file. It also describes
	what has to be done when this file is finished. The source_read/3
	predicate reads a term from a given source position and returns
	the new source position after the read.
<H2>See Also</H2>
<A HREF="../../lib/source_processor/source_open-3.html">source_open / 3</A>, <A HREF="../../lib/source_processor/source_close-2.html">source_close / 2</A>, <A HREF="../../lib/source_processor/source_read-4.html">source_read / 4</A>
</BODY></HTML>
